var pht={
    template:function (u,n,t){
        var _html=""
        _html+='<div class="item">\n' +
            '            <div class="imgs">\n' +
            '                <img src="'+u+'" alt="无法显示该图片">\n' +
            '                <div class="tip">'+n+'</div>\n' +
            '            </div>\n' +
            '            <div class="title">\n' +
            '                <h3>'+t+'</h3>\n' +
            '            </div>\n' +
            '        </div>'
        return _html
    }
}
var arrPics=[{u:"../static/img/block/test1.png",n:"喜欢|102",t:"python的核心竞争力"},
    {u:"../static/img/block/test2.png",n:"喜欢|120",t:"python的核心竞争力"}
,{u:"../static/img/block/test3.png",n:"喜欢|104",t:"python的核心竞争力"},
    {u:"../static/img/block/test4.png",n:"喜欢|112",t:"python的核心竞争力"},
{u:"../static/img/block/test11.jpg",n:"喜欢|102",t:"python的核心竞争力"},
    {u:"../static/img/block/test8.jpg",n:"喜欢|102",t:"python的核心竞争力"},
    {u:"../static/img/block/test9.jpg",n:"喜欢|102",t:"python的核心竞争力"},
    {u:"../static/img/block/test10.jpg",n:"喜欢|102",t:"python的核心竞争力"}]
// {u:"../static/img/test6.png",n:"喜欢|104",t:"python的核心竞争力"}]
for (i=0;i<arrPics.length;i++){
    arrPics[i].t="actress"+(i+1)
    var pics=pht.template(arrPics[i].u,arrPics[i].n,arrPics[i].t)
    $("#pic").append(pics)
}